#include <iostream>
#include <thread>

void foo() 
{
    std::cout << "hello world" << std::endl;
}

int main() {
    std::thread t(foo);
    t.join();
    // t.detach();
    std::cout << "ending......\n";
    return 0;
}